# -*- coding: utf-8 -*-


def sqlserver_connect():
    import pymssql
    connect = pymssql.connect(
         host="192.168.117.130",
         user="sa",
         password="chench",
         database="test"
    )
    cursor = connect.cursor()
    if cursor:
        print("连接成功")
        pass
    pass


if __name__ == '__main__':

    sqlserver_connect()
    
    pass        
        
    